
class A {
    public void fun() throws Exception{
        System.out.println("hello");
    }
}

public class Test {
    public static void main(String[] args) {
//        StringBuffer stringBuffer = new StringBuffer();
//        stringBuffer.append("he");
//        System.out.println(stringBuffer);
        A a = new A();
        System.out.println(a.toString());
        
    }
    public static void main1(String[] args) {
        try {
            A a = new A();
            a.fun();
        }catch (RuntimeException r) {

        } catch (Exception e) {
            e.printStackTrace();
        } finally {

        }
    }
}
